package com.citcc.business.mapper;

import com.citcc.business.bean.CdzStake;
import com.citcc.business.bean.vo.CdzStakeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CdzStakeMapper {
    int deleteByPrimaryKey(String id);

    int insertSelective(CdzStake record);

    CdzStake selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CdzStake record);

    int updateByIsonline(@Param("code")String code, @Param("isOnline")String isOnline);


    public List<CdzStake> selectAllList(CdzStake stake);

    /**
     * ����ɾ����������ڸó��̵���Ϣ
     */
    public int countManufacturer(String trademark);

    /**
     * ���վɾ����������ڸó��վ����Ϣ
     */
    public int countStation(String stationId);
    /**
     * �޸ĳ��ǹ������
     */
    public int updateGunNum(@Param("code")String code, @Param("gunNum")String gunNum);

    List<CdzStakeVo> getStakeListByStationId(String stationId);
    List<Map<String,Object>> getGunListByStationId(String stationId);

    CdzStake getByStakeCode(String code);
}